/*********************************************************
          File Name:test.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Sun 20 Sep 2015 09:33:03 PM CST
**********************************************************/

#include <iostream>
#include <map>
#include <string>
#include <exception>

using std::string;
using std::map;
using std::cout;
using std::endl;

int main()
{
        map<string, int> m{{"this", 1}, {"is", 2}};

        try
        {
                m.at("hehe");
        }
        catch(std::exception &error)
        {
                cout << error.what() << endl;
        }

        return 0;
}
